import axios from "@/utils/axios";
import api from "@/api";

/**
 * @name: registerService
 * @Description:
 * @Author: 方琦
 * @Date: 2022/6/15 17:02
 **/
export default {
    userDetails, registerUser, verification
}

//验证码
function verification(phone) {
    return axios({
        url: api.registerApi.verification,
        method: 'post',
        params: {
            phone,
        }
    })
}

//注册
function registerUser(phone, pwd) {
    return axios({
        url: api.registerApi.registerUser,
        method: 'post',
        data: {
            phone, pwd
        }
    })
}

//完善信息
function userDetails(registerMessage) {
    return axios({
        url: api.registerApi.userDetails,
        method: 'post',
        data: registerMessage
    })
}
